Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes: direct buffer API #13

Merged
merged 2 commits into from
Jul 25, 2021
Merged

Conversation

phlash
Copy link
Member

@phlash phlash commented Jul 25, 2021

After testing with my own remoting solution, updated to use the direct buffer API, I discovered a couple of bugs:

  • incorrect calculation of direct buffer pointer (correct calculation was already in readStream)
  • missing call to snd_pcm_prepare if a stream is deactivated and then re-activated (also in readStream)

turns out I should read nearby code 😄

@guruofquality
Copy link
Collaborator

After testing with my own remoting solution, updated to use the direct buffer API, I discovered a couple of bugs:

How does it compare when the protocol is set to tcp for soapy remote?
https://github.com/pothosware/SoapyRemote/wiki#remoteprot

SoapyRemote is trying to have headers with metadata and some kind of flow control. But if plain tcp is useful, I dont see why that couldnt be a mode in SoapyStreamEndpoint.cpp

@guruofquality guruofquality merged commit e52d76d into pothosware:master Jul 25, 2021
@phlash
Copy link
Member Author

phlash commented Jul 26, 2021

How does it compare when the protocol is set to tcp for soapy remote?

Good question, and I wasn't aware of that option, I'll give that a try when I'm back home tomorrow...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants